package com.blq.web.PayoutInformation.mapper;

import com.blq.web.PayoutInformation.domain.PayoutInformation;
import com.blq.web.PayoutInformation.domain.vo.PayoutInformationVo;
import com.blq.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * 收款信息Mapper接口
 *
 * @author Blq
 * @date 2022-09-13
 */
public interface PayoutInformationMapper extends BaseMapperPlus<PayoutInformationMapper, PayoutInformation, PayoutInformationVo> {
    /**
     * @Author: xiaw
     * orderId-工单id
     * loginmanId-确认付款人
     * date-确认付款时间
     *
     * date1-确认到账时间
     * loginmanId1确认到账人
     */
    void updateByOrderId(@Param("orderId") String orderId,
                         @Param("loginmanId")  String loginmanId,
                         @Param("date") String date,
                         @Param("date1") String date1,
                         @Param("loginmanId1") String loginmanId1,
                         @Param("confirmProof") String confirmProof);

    void updateByOrderId2(@Param("orderId") String orderId,
                         @Param("loginmanId")  String loginmanId,
                         @Param("date") String date,
                         @Param("date1") String date1,
                         @Param("loginmanId1") String loginmanId1,
                         @Param("paymentTime") String paymentTime,
                         @Param("paymentMethod") String paymentMethod);

    /**
     * 根据工单ID更新付款方式和时间
     * @param orderId
     * @param paymentTime
     * @param paymentMethod
     */
    void updateByOrderId3(@Param("orderId") String orderId,
                         @Param("paymentTime") String paymentTime,
                         @Param("paymentMethod") String paymentMethod);

}
